<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>

<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Player Homepage</title>
</head>
<body>
	<h1>List of game you are currently involved in</h1>
	<table id="gameListTable" border="3">
	<tr >
	    <th bgcolor=>ID</th>
	    <th bgcolor=>Name</th>
	    <th bgcolor=>CreatorID</th>
	    <th bgcolor=>StartDate</th>
	    <th bgcolor=>MaxPlayer</th>
	    <th bgcolor=>Initial</th>
	    
	</tr>
	<c:forEach var="games" begin="0" items="${requestScope.gameList}">
	<tr>
	    <td>${games.gameID}&nbsp;&nbsp;</td> 
	    <td>${games.gameName}&nbsp;&nbsp;</td> 
	    <td>${games.creator}&nbsp;&nbsp;</td> 
	    <td>${games.startDate}&nbsp;&nbsp;</td> 
	    <td>${games.maxPlayer}&nbsp;&nbsp;</td> 
	    <td>${games.initialBalance}&nbsp;&nbsp;</td> 
	</tr> 	
	</c:forEach>
	
	
	
	</table>
	
</body>
</html>